package cn.qingyun.gis.modules.scenes.feign;

import cn.qingyun.gis.modules.scenes.feign.fallback.PoiWgtInvokeFeignServiceFallback;
import cn.qingyun.gis.modules.scenes.request.KwResultRequest;
import cn.qingyun.gis.modules.scenes.request.QueryUserPanRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(name = "lottery-activity-server", url = "${qingyun.feign.url.lottery-activity-server:http://127.0.0.1}", fallback = PoiWgtInvokeFeignServiceFallback.class)
public interface PoiWgtInvokeFeignService {
    /**
     * 调用网格通查询用户是否关联泛渠道接口
     * @param request
     * @return
     */
    @PostMapping(value = "/inner/api/pickmoon/qryUserInfo", produces = "application/json")
    String queryUserPanChannel(@RequestBody QueryUserPanRequest request);

    /**
     * 调用网格通接口同步商机
     * @param list
     * @return
     */
    @PostMapping("/inner/api/pickmoon/add")
    String sendBusinessToWgt(@RequestBody List<KwResultRequest> list);
}

